import request from "@/utils/request";
// 新增告警业务
export function businessAdd(data) {
    return request({
        url: '/system/alarm/business/add',
        method: 'post',
        data
    })
}
// 修改告警业务
export function businessEdit(data) {
    return request({
        url: '/system/alarm/business/edit',
        method: 'post',
        data
    })
}

// 查询告警业务详情
export function businesstInfo(query) {
    return request({
        url: '/system/alarm/business/getInfo',
        method: 'get',
        params: query
    })
}

// 查询告警业务列表
export function businessList(query) {
    return request({
        url: '/system/alarm/business/list',
        method: 'get',
        params: query
    })
}

// 删除告警业务
export function businessRemove(data) {
    return request({
        url: '/system/alarm/business/remove',
        method: 'post',
        data
    })
}

// 删除数据前校验
export function deleteForCheck(data) {
  return request({
    url: '/system/alarm/business/deleteCheck',
    method: 'post',
    data: data
  })
}
